package com.wy;

import com.alibaba.nacos.api.annotation.NacosProperties;
import com.alibaba.nacos.api.config.annotation.NacosConfigurationProperties;
import com.alibaba.nacos.api.config.annotation.NacosProperty;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.ConfigurableApplicationContext;


import java.util.concurrent.TimeUnit;

/**
 * @author wangyu
 * @Description
 * @create 2020-06-22 16:46
 */
@SpringBootApplication
//服务被nacos发现
@EnableDiscoveryClient()
//读取nacos中配置文件
public class GateWayApplication {
    /**
     * logger instance
     */
    static Logger logger = LoggerFactory.getLogger(GateWayApplication.class);
    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(GateWayApplication.class);
    }
}
